<!DOCTYPE html>
<html>
  <head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="utf-8">
  <meta name="author" content="紫锦木">
  

  <title>mui开发中涉及到的iPhone适配问题 | 紫锦木</title>

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  
  <meta name="keywords" content="mui,mui,">
  

  
  <meta name="description" content="在进行 mui 开发的时候，在 iPhone 上会遇到适配问题，比如底部 tab 的高度适应问题，在 iPhone X 以上需要设置更高的高度">

  

  
  <script src="//cdn.jsdelivr.net/npm/leancloud-storage@3.11.1/dist/av-min.js" async></script>
  

  
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" async></script>
  

  
  <script src="//unpkg.com/valine/dist/Valine.min.js" async></script>
  

  

  <script>
  // theme-ad's config script
  // it can be used in every script
  
  window.AD_CONFIG = {
    leancloud: {"appid":"3zwI0gU7grT0MfYUEurqXnWE-gzGzoHsz","appkey":"yVgwglQXfL3vbQiSzeo1Xhqx","comment":true,"count":true},
    welcome: {"enable":false,"interval":30},
    start_time: "2019-05-01",
    passwords: ["efe07af7441da2b69c4a41e42e73be4db47f66010a56900788a458354a7373ec", ],
    is_post: true,
    lock: false,
    author: "紫锦木",
    share: {"twitter":false,"facebook":false,"weibo":true,"qq":true,"wechat":true},
    mathjax: true,
    page_type: "",
    root: "/"
  };
</script>

  <script src="/vendor/sha256.min.js"></script>
<script src="/js/auth.js"></script>
<script src="/js/index.js"></script>
<script src="/vendor/qrcode.min.js"></script>

  
  <link rel="icon" href="/images/favicon.ico">
  <link rel="apple-touch-icon" href="/images/touch-icon.png">
  

  <link href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

  <link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/styles/components/highlight/highlight.css">

  
</head>
  <body>
    <header class="site-header">
  <div class="site-header-brand">
    
      <span class="site-header-brand-title">
        <a href="/">紫锦木</a>
      </span>
    
    
      <span class="site-header-brand-motto"> | 足迹👣</span>
    
  </div>
  <div class="site-header-right">
    <nav class="site-header-navigation">
      
        <a href="/" target="_self">首页</a>
      
        <a href="/archives/" target="_self">归档</a>
      
        <a href="/tags/" target="_self">标签</a>
      
        <a href="/categories/" target="_self">分类</a>
      
        <a href="/friends/" target="_self">友链</a>
      
        <a href="/about/" target="_self">关于</a>
      
    </nav>
    <div class="site-header-btn">
      
        <a href="https://github.com/xfjpeter/" target="_blank" id="site-github">
          <i class="fa fa-github-alt"></i>
        </a>
      
      <a href="javascript:void(0);" id="site-search">
        <i class="fa fa-search"></i>
      </a>
      <a href="javascript:void(0);" id="site-nav-btn">
        <i class="fa fa-ellipsis-v"></i>
      </a>
    </div>
  </div>
</header>
<nav class="table-content" id="site-nav">
  <div class="table-content-title">
    <span>导航</span>
  </div>
  <div class="table-content-main">
    <ol class="toc">
      
        <li class="toc-item">
          <a href="/" target="_self">
            首页
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/archives/" target="_self">
            归档
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/tags/" target="_self">
            标签
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/categories/" target="_self">
            分类
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/friends/" target="_self">
            友链
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/about/" target="_self">
            关于
          </a>
        </li>
      
    </ol>
  </div>
</nav>
<div id="site-process"></div>
    <main>
      
  <div class="passage">
  <div class="passage-meta">
    <span>
      <i class="fa fa-calendar"></i>2019-05-10
    </span>
    
      <span>
        | <a href="/categories/mui/"><i class="fa fa-bookmark"></i>mui</a>
      </span>
    
    
      <span>
        | <i class="fa fa-unlock-alt"></i>UNLOCK
      </span>
    
  </div>
  <h1 class="passage-title">
    mui开发中涉及到的iPhone适配问题
  </h1>
  
  <article class="passage-article">
    <blockquote><p>在进行 mui 开发的时候，在 iPhone 上会遇到适配问题，比如底部 tab 的高度适应问题，在 iPhone X 以上需要设置更高的高度</p>
</blockquote>
<h2 id="1-一下列举出-iPhone-所有机型的宽和高"><a href="#1-一下列举出-iPhone-所有机型的宽和高" class="headerlink" title="1. 一下列举出 iPhone 所有机型的宽和高"></a>1. 一下列举出 iPhone 所有机型的宽和高</h2><table>
<thead>
<tr>
<th>机型</th>
<th>高(px)</th>
<th>宽(px)</th>
</tr>
</thead>
<tbody>
<tr>
<td>iPhone 5S</td>
<td>568</td>
<td>320</td>
</tr>
<tr>
<td>iPhone 6</td>
<td>667</td>
<td>375</td>
</tr>
<tr>
<td>iPhone 6p</td>
<td>736</td>
<td>414</td>
</tr>
<tr>
<td>iPhone 6S</td>
<td>667</td>
<td>375</td>
</tr>
<tr>
<td>iPhone 6s plus</td>
<td>736</td>
<td>414</td>
</tr>
<tr>
<td>iPhone 7</td>
<td>667</td>
<td>375</td>
</tr>
<tr>
<td>iPhone 7 plus</td>
<td>736</td>
<td>414</td>
</tr>
<tr>
<td>iPhone 8</td>
<td>667</td>
<td>375</td>
</tr>
<tr>
<td>iPhone 8 plus</td>
<td>736</td>
<td>414</td>
</tr>
<tr>
<td>iPhone SE</td>
<td>568</td>
<td>320</td>
</tr>
<tr>
<td>iPhone X</td>
<td>821</td>
<td>375</td>
</tr>
<tr>
<td>iPhone XS</td>
<td>821</td>
<td>375</td>
</tr>
<tr>
<td>iPhone XS MAX</td>
<td>896</td>
<td>414</td>
</tr>
<tr>
<td>iPhone XR</td>
<td>896</td>
<td>414</td>
</tr>
</tbody>
</table>
<h2 id="2-一般常规的首页应该是这样的"><a href="#2-一般常规的首页应该是这样的" class="headerlink" title="2. 一般常规的首页应该是这样的"></a>2. 一般常规的首页应该是这样的</h2><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> subPages = [</span><br><span class="line">  <span class="string">'pages/sub1.html'</span>,</span><br><span class="line">  <span class="string">'pages/sub2.html'</span>,</span><br><span class="line">  <span class="string">'pages/sub3.html'</span>,</span><br><span class="line">  <span class="string">'pages/sub4.html'</span></span><br><span class="line">]</span><br><span class="line"><span class="keyword">var</span> active = subPages[<span class="number">0</span>]</span><br><span class="line">mui.plusReady(<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line">  <span class="keyword">var</span> subPageStyle = &#123;</span><br><span class="line">    top: <span class="string">'44px'</span>, <span class="comment">// 去除顶部的高度</span></span><br><span class="line">    bottom: <span class="string">'50px'</span> <span class="comment">// 去除tab的高度,注意iPhoneX的底部高度有问题,比50px高</span></span><br><span class="line">  &#125;</span><br><span class="line">  plus.navigator.setStatusBarBackground(<span class="string">'#000000'</span>)</span><br><span class="line">  plus.navigator.setStatusBarStyle(<span class="string">'light'</span>)</span><br><span class="line">  <span class="keyword">var</span> self = plus.webview.currentWebview()</span><br><span class="line">  <span class="keyword">for</span> (<span class="keyword">var</span> i = <span class="number">0</span>; i &lt; subPages.length; i++) &#123;</span><br><span class="line">    <span class="keyword">var</span> sub = plus.webview.create(subPages[i], subPages[i], subPageStyle)</span><br><span class="line">    sub.hide() <span class="comment">// 隐藏</span></span><br><span class="line">    self.append(sub) <span class="comment">// 追加到当前页面中</span></span><br><span class="line">  &#125;</span><br><span class="line">  plus.webview.show(active)</span><br><span class="line">&#125;)</span><br><span class="line"></span><br><span class="line"><span class="comment">// 底部选项卡切换</span></span><br><span class="line">mui(<span class="string">'.mui-bar-tab'</span>).on(<span class="string">'tap'</span>, <span class="string">'a'</span>, <span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>&#123;</span><br><span class="line">  <span class="keyword">var</span> target = <span class="keyword">this</span>.getAttribute(<span class="string">'href'</span>)</span><br><span class="line">  <span class="keyword">if</span> (target != active) &#123;</span><br><span class="line">    plus.webview.hide(active)</span><br><span class="line">    plus.webview.show(target, <span class="string">'fade-in'</span>, <span class="number">100</span>)</span><br><span class="line">    active = target</span><br><span class="line">  &#125;</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>
<blockquote>
<p>在<code>subPageStyle</code>参数中的<code>bottom</code>指的打开新页面距离底部的高度，根据官方来说设置<code>50px</code>刚刚好，但是在<code>iPhone X</code>以上会导致 tab 栏被覆盖，说明设置的打开页面距离底部的高度不够，所以需要再加那么一点点，具体 ➕ 多少，可以慢慢试，我这边帮小伙伴们都试好了，➕28px 就刚刚好，所以改变后的代码如下</p>
</blockquote>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> subPages = [</span><br><span class="line">  <span class="string">'pages/sub1.html'</span>,</span><br><span class="line">  <span class="string">'pages/sub2.html'</span>,</span><br><span class="line">  <span class="string">'pages/sub3.html'</span>,</span><br><span class="line">  <span class="string">'pages/sub4.html'</span></span><br><span class="line">]</span><br><span class="line"><span class="keyword">var</span> active = subPages[<span class="number">0</span>]</span><br><span class="line">mui.plusReady(<span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line">  <span class="keyword">var</span> navigatorW = screen.width</span><br><span class="line">  <span class="keyword">var</span> navigatorH = screen.height</span><br><span class="line">  <span class="keyword">if</span> (</span><br><span class="line">    plus.os.name === <span class="string">'iOS'</span> &amp;&amp;</span><br><span class="line">    ((navigatorH == <span class="number">812</span> &amp;&amp; navigatorW == <span class="number">375</span>) ||</span><br><span class="line">      (navigatorH == <span class="number">896</span> &amp;&amp; navigatorW == <span class="number">414</span>))</span><br><span class="line">  ) &#123;</span><br><span class="line">    <span class="keyword">var</span> subPageStyle = &#123;</span><br><span class="line">      top: <span class="string">'44px'</span>, <span class="comment">// 去除顶部的高度</span></span><br><span class="line">      bottom: <span class="string">'78px'</span> <span class="comment">// 去除tab的高度,注意iPhoneX的底部高度有问题,比50px高</span></span><br><span class="line">    &#125;</span><br><span class="line">  &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">    <span class="keyword">var</span> subPageStyle = &#123;</span><br><span class="line">      top: <span class="string">'44px'</span>, <span class="comment">// 去除顶部的高度</span></span><br><span class="line">      bottom: <span class="string">'50px'</span> <span class="comment">// 去除tab的高度,注意iPhoneX的底部高度有问题,比50px高</span></span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">  plus.navigator.setStatusBarBackground(<span class="string">'#000000'</span>)</span><br><span class="line">  plus.navigator.setStatusBarStyle(<span class="string">'light'</span>)</span><br><span class="line">  <span class="keyword">var</span> self = plus.webview.currentWebview()</span><br><span class="line">  <span class="keyword">for</span> (<span class="keyword">var</span> i = <span class="number">0</span>; i &lt; subPages.length; i++) &#123;</span><br><span class="line">    <span class="keyword">var</span> sub = plus.webview.create(subPages[i], subPages[i], subPageStyle)</span><br><span class="line">    sub.hide() <span class="comment">// 隐藏</span></span><br><span class="line">    self.append(sub) <span class="comment">// 追加到当前页面中</span></span><br><span class="line">  &#125;</span><br><span class="line">  plus.webview.show(active)</span><br><span class="line">&#125;)</span><br><span class="line"></span><br><span class="line"><span class="comment">// 底部选项卡切换</span></span><br><span class="line">mui(<span class="string">'.mui-bar-tab'</span>).on(<span class="string">'tap'</span>, <span class="string">'a'</span>, <span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>&#123;</span><br><span class="line">  <span class="keyword">var</span> target = <span class="keyword">this</span>.getAttribute(<span class="string">'href'</span>)</span><br><span class="line">  <span class="keyword">if</span> (target != active) &#123;</span><br><span class="line">    plus.webview.hide(active)</span><br><span class="line">    plus.webview.show(target, <span class="string">'fade-in'</span>, <span class="number">100</span>)</span><br><span class="line">    active = target</span><br><span class="line">  &#125;</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>
<h2 id="3-说在最后，分享一个双击重新加载页面的代码"><a href="#3-说在最后，分享一个双击重新加载页面的代码" class="headerlink" title="3. 说在最后，分享一个双击重新加载页面的代码"></a>3. 说在最后，分享一个双击重新加载页面的代码</h2><h3 id="3-1-在mui-init中启用双击事件，默认是关闭的"><a href="#3-1-在mui-init中启用双击事件，默认是关闭的" class="headerlink" title="3.1 在mui.init中启用双击事件，默认是关闭的"></a>3.1 在<code>mui.init</code>中启用双击事件，默认是关闭的</h3><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">mui.init(&#123;</span><br><span class="line">  gestureConfig: &#123;</span><br><span class="line">    doubletap: <span class="literal">true</span></span><br><span class="line">  &#125;</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>
<h3 id="3-2-增加以下监听事件"><a href="#3-2-增加以下监听事件" class="headerlink" title="3.2 增加以下监听事件"></a>3.2 增加以下监听事件</h3><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">mui(<span class="string">'.mui-bar-tab'</span>).on(<span class="string">'doubletap'</span>, <span class="string">'a'</span>, <span class="function"><span class="keyword">function</span>(<span class="params"></span>) </span>&#123;</span><br><span class="line">  <span class="comment">// 双击重新加载页面内容</span></span><br><span class="line">  plus.webview.getWebviewById(active).reload()</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>
  </article>
  <aside class="table-content" id="site-toc">
  <div class="table-content-title">
    <i class="fa fa-arrow-right fa-lg" id="site-toc-hide-btn"></i>
    <span>目录</span>
  </div>
  <div class="table-content-main">
    <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#1-一下列举出-iPhone-所有机型的宽和高"><span class="toc-text">1. 一下列举出 iPhone 所有机型的宽和高</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2-一般常规的首页应该是这样的"><span class="toc-text">2. 一般常规的首页应该是这样的</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3-说在最后，分享一个双击重新加载页面的代码"><span class="toc-text">3. 说在最后，分享一个双击重新加载页面的代码</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#3-1-在mui-init中启用双击事件，默认是关闭的"><span class="toc-text">3.1 在mui.init中启用双击事件，默认是关闭的</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#3-2-增加以下监听事件"><span class="toc-text">3.2 增加以下监听事件</span></a></li></ol></li></ol>
  </div>
</aside>
  
    <aside class="passage-copyright">
      <div>本文作者: 紫锦木</div>
      
        <div>
          原文链接: 
          <a href target="_blank">https://www.xfjpeter.cn/articles/cjw2qr5ai0006soxxzw5ngsnk.html</a>
        </div>
      
      <div>
        版权声明: 本博客所有文章除特别声明外, 均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> 许可协议. 转载请注明出处!
      </div>
    </aside>
  
  
    <div class="passage-tags">
     
      <a href="/tags/mui/"><i class="fa fa-tags"></i>mui</a>
    
    </div>
  
</div>

    </main>
    
      
<div class="site-comment-contanier" data-plateform="leancloud">
  
    <p id="site-comment-info">
      <i class="fa fa-spinner fa-spin"></i> 评论加载中
    </p>
    <div id="site-comment"></div>
  
</div>
    
    <div class="site-footer-wrapper">
  <footer class="site-footer">
    
    
    <div class="site-footer-col">
      <h5 class="site-footer-title">博客推荐</h5>
      
      <span class="site-footer-item">
        <a href="https://godbmw.com/" target="_blank">GodBMW</a>
      </span>
      
      <span class="site-footer-item">
        <a href="http://ruanyifeng.com/" target="_blank">阮一峰的个人网站</a>
      </span>
      
    </div>
    
    <div class="site-footer-col">
      <h5 class="site-footer-title">抓到我</h5>
      
      <span class="site-footer-item">
        <a href="https://juejin.im/user/5b4ffe335188251afa62cd8a" target="_blank">掘金</a>
      </span>
      
      <span class="site-footer-item">
        <a href="https://segmentfault.com/u/johnxu_58f42b627331b" target="_blank">思否</a>
      </span>
      
      <span class="site-footer-item">
        <a href="https://www.jianshu.com/u/56f6d0e3bae3" target="_blank">简书</a>
      </span>
      
    </div>
    
    
    <div class="site-footer-info">
      <i class="fa fa-clock-o"></i> 本站已稳定运行<span id="site-time"></span>
    </div>
    
    <div class="site-footer-info">
      <i class="fa fa-paw"></i> 您是本站第 <span id="site-count"></span> 位访客
    </div>
    
    
    <div class="site-footer-info">
      <i class="fa fa-at"></i> Email: fsyzxz@163.com
    </div>
    
    <div class="site-footer-info">
      <i class="fa fa-copyright"></i>
      2019 <a href="https://github.com/dongyuanxin/theme-ad/" target="_blank">Theme-AD</a>.
      Created by <a href="https://godbmw.com/" target="_blank">GodBMW</a>.
      All rights reserved.
    </div>
  </footer>
</div>
    <div id="site-layer" style="display:none;">
  <div class="site-layer-content">
    <div class="site-layer-header">
      <span class="site-layer-header-title" id="site-layer-title"></span>
      <i class="fa fa-close" id="site-layer-close"></i>
    </div>
    <div class="site-layer-body" id="site-layer-container">
      <div class="site-layer-input" id="site-layer-search" style="display: none;">
        <input type="text">
        <i class="fa fa-search"></i>
      </div>
      
        <div class="site-layer-reward" id="site-layer-reward" style="display: none;">
          
            <div>
              <img src="/images/wechat.png" alt="WeChat">
              
                <p>WeChat</p>
              
            </div>
          
            <div>
              <img src="/images/alipay.png" alt="AliPay">
              
                <p>AliPay</p>
              
            </div>
          
        </div>
      
      <div id="site-layer-welcome" style="display:none;"></div>
    </div>
  </div>
</div>
    

<div class="bottom-bar">
  <div class="bottom-bar-left">
    <a href="/articles/cjw2qr5ae0002soxxrldbdxof.html" data-enable="true">
      <i class="fa fa-arrow-left"></i>
    </a>
    <a href="/articles/cjw2qr5aa0000soxx8oulevw3.html" data-enable="true">
      <i class="fa fa-arrow-right"></i>
    </a>
  </div>
  <div class="bottom-bar-right">
    <a href="javascript:void(0);" data-enable="true" id="site-toc-show-btn">
      <i class="fa fa-bars"></i>
    </a>
    
      <a href="#site-comment" data-enable="true">
        <i class="fa fa-commenting"></i>
      </a>
    
    <a href="javascript:void(0);" id="site-toggle-share-btn">
      <i class="fa fa-share-alt"></i>
    </a>
    
      <a href="javascript:void(0);" id="site-reward">
        <i class="fa fa-thumbs-up"></i>
      </a>
    
    <a href="javascript:void(0);" id="back-top-btn">
      <i class="fa fa-chevron-up"></i>
    </a>
  </div>
</div>
    <div id="share-btn">
  
  
  
    <a id="share-btn-weibo" href="javascript:void(0);" target="_blank">
      <i class="fa fa-weibo"></i>
    </a>
  
  
    <a id="share-btn-qq" href="javascript:void(0);" target="_blank">
      <i class="fa fa-qq"></i>
    </a>
  
  
    <a id="share-btn-wechat" href="javascript:void(0);" target="_blank">
      <i class="fa fa-wechat"></i>
    </a>
  
</div>
    


  <script async>
  (function(){
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      if (curProtocol === 'https') {
          bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      }
      else {
          bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
  })();
  </script>




    
  </body>
</html>